@import url(./common.css);
$bigWidth:1200px;
$mediumWidth:1000px;
//flex-basis为何会无效呢 flex子项不能设置脱离文档流的定位
body{
    aside{
        height: 100vh;
        width:375px;
        position: fixed;
        top: 0;
        left: 0;
        background: url(../images/registe.jpg) no-repeat center center/cover;
    }
    main{
        width: 100%;
        padding-left: 375px;
        header{
            height: 80px;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            .logo{
                width: 154px;
                height: 40px;
                display: flex;
                justify-content: space-between;
                .img{
                    width: 40px;
                    height: 40px;
                    img{
                        width: 100%;
                        height: 100%;
                    }
                }
                span{
                    font-size: 26px;
                    font-weight: 500;
                    color: #333;
                    line-height: 40px;
                }
            }
            nav{
                width: fit-content;
                height: 100%;
                ul{
                    width: 100%;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    float: right;
                    
                    li{
                        cursor: pointer;
                        height: fit-content;
                        padding: 0 10px;
                        font-size: 14px;
                        font-weight: 400;
                        color: #838383;
                        &:nth-child(3){
                            border-right: 1px solid #838383;
                        }
                        &:hover{
                            color:#ff5c00
                        }
                    }
                }
            }
        }
        
            .mi-card{
                width: 450px;
                height: 600px;
                margin: 0 auto;
                background-color: #fff;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 4px;
                box-shadow: 0 0 5px #888888;
                margin-top: 10px;
                form{
                    width: 360px;
                    height: 520px;
                    display: flex;
                    flex-flow: column nowrap;
                    align-items: center;
                    .title{
                        width: 100%;
                        span{
                            float: left;
                            &:nth-child(2)>a{
                                color: #ff5c00;
                                font-weight: 500;
                            }
                            &:nth-child(1)>a{
                                color: #ccc;
                            }
                            a{
                                font-size: 22px;
                                font-weight: 400;
                                
                            }
                            &:nth-child(2){
                                border-bottom: 4px solid #ff5c00;
                                margin-left: 10px;
                                border-radius: 4px;
                                
                            }
                        }
                    }
                    .text,.password{
                        input[type]:not(input[type="submit"]){
                            width: 360px;
                            height: 60px;
                            appearance: none;
                            padding: 20px;
                            border: none;
                            font-size: 17px;
                            color: #333;
                            line-height: 20px;
                            background: rgba(0, 0, 0, .1);
                            margin-top: 20px;
                            border-radius: 4px;
                        }
                        span.message{
                            color: red;
                            font-size: 12px;
                        }
                    }
                    
                    input[type="submit"]{
                        width: 360px;
                        margin-top: 20px;
                        margin-bottom: 10px;
                        height: 60px;
                        box-sizing: border-box;
                        appearance: none;
                        padding: 20px;
                        border: none;
                        font-size: 17px;
                        color: white;
                        line-height: 20px;
                        background: #ff5c00;
                        border-radius: 4px;
                        cursor: pointer;
                    }
                    .link{
                        width: 360px;
                        display: flex;
                        justify-content: space-between;
                        a{
                            color: #ff5c00;
                        }
                    }
                    .check{
                        margin-top: 20px;
                        display: flex;
                        align-items: center;
                        input[type="checkbox"]{
                            width: 16px;
                            height: 16px;
                            border: #ccc;
                            &:hover{
                                border: #ff5c00;
                            }
                        }
                        label{
                            padding-right: 4px;
                            padding-left: 4px;
                            font-size: 14px;
                            color: #ccc;
                        }
                    }
                    .other{
                        margin-top: 100px;
                        a{
                            text-align: center;
                            font-size: 17px;
                            font-weight: 400;
                            color: #aaa;
                            line-height: 40px;
                        }
                    }
                    div.icon{
                        display: flex;
                        justify-content: center;
                        width: 360px;
                        svg{
                            margin: 0 10px;
                        }
                    }
                }
                
            }
        
        
    }
}
@media screen and (max-width:$bigWidth){
    body{
        aside{
            width:200px;
        }
        main{
            padding-left: 200px;
        }
    }
}
@media screen and (max-width:$mediumWidth){
    body{
        aside{
            display: none;
        }
        main{
            padding-left: 0;
        }
    }
}
